package vip.xiaonuo.biz.modular.article.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import vip.xiaonuo.biz.modular.article.entity.BizArticle;
import vip.xiaonuo.biz.modular.article.param.BizArticleAddParam;
import vip.xiaonuo.biz.modular.article.param.BizArticleEditParam;
import vip.xiaonuo.biz.modular.article.param.BizArticleIdParam;
import vip.xiaonuo.biz.modular.article.param.BizArticlePageParam;

import java.util.List;

public interface BizArticleService extends IService<BizArticle> {

    void add(BizArticleAddParam addParam);

    void edit(BizArticleEditParam editParam);

    void delete(List<BizArticleIdParam> idListParam);

    Page<BizArticle> page(BizArticlePageParam pageParam);

    Page<BizArticle> pageForC(BizArticlePageParam pageParam);

    BizArticle detail(BizArticleIdParam idParam);

    BizArticle queryEntity(String id);

    List<BizArticle> getLatestArticle();

    void editVisible(BizArticleEditParam editParam);
}
